import Request from '@/utils/request-util';

/**
 * 电能终端检测api
 *
 * @author cancan
 * @date 2025/11/08 19:07
 */
export class DevicePowerMonitorApi {

  static findPage(params) {
    return Request.getAndLoadData('/devicePowerMonitor/page', params);
  }
  /**
   * 新增
   *
   * @author cancan
   * @date 2025/11/08 19:07
   */
  static add(params) {
    return Request.post('/devicePowerMonitor/add', params);
  }

  /**
   * 修改
   *
   * @author cancan
   * @date 2025/11/08 19:07
   */
  static edit(params) {
    return Request.post('/devicePowerMonitor/edit', params);
  }

  /**
   * 删除
   *
   * @author cancan
   * @date 2025/11/08 19:07
   */
  static delete(params) {
    return Request.post('/devicePowerMonitor/delete', params);
  }

  /**
   * 详情
   *
   * @author cancan
   * @date 2025/11/08 19:07
   */
  static detail(params) {
    return Request.getAndLoadData('/devicePowerMonitor/detail', params);
  }

    static detailByRecord(recordId) {
    return Request.getAndLoadData('/devicePowerMonitor/detailByRecordId', {"recordId" : recordId});
  }
}
